<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp"%>
<script type="text/javascript">
    $(function() {
        $('#shopCourseListAddForm').form({
            url : '${path}/shopCourseList/add',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    //之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    var form = $('#shopCourseListAddForm');
                    parent.$.messager.alert('错误', eval(result.msg), 'error');
                }
            }
        });
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false"
		style="overflow: hidden;padding: 3px;">
		<form id="shopCourseListAddForm" method="post">
			<table class="grid">
				<tr>
					<td>主键</td>
					<td><input type="text" name="id" class="easyui-numberbox" />
					</td>
				</tr>
				<tr>
					<td>商品编码</td>
					<td><input type="text" name="goodId" class="easyui-numberbox" />
					</td>
				</tr>
				<tr>
					<td>课程名称</td>
					<td><input type="text" name="courseName"
						class="easyui-numberbox" />
					</td>
				</tr>
				<tr>
					<td>所属层级(1,2,3）</td>
					<td><input type="text" name="levelId" class="easyui-numberbox" />
					</td>
				</tr>
				<tr>
					<td>视频编号</td>
					<td><input type="text" name="videoId" class="easyui-numberbox" />
					</td>
				</tr>
				<tr>
					<td>收费类型(免费，付费，会员免费)</td>
					<td><input type="text" name="chargeType"
						class="easyui-numberbox" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>